<?php
	include_once 'BaseModel.php';
	include_once 'UserPageDAO.php';
	
	class AboutMeModel extends BaseModel {
		public function getData($params) {
			$data->pageOwner = $params->pageOwner;
			$user=UserDAO::getInstance()->getUser($params->pageOwner);
			if($user!=null)
				$data->userPage=UserPageDAO::getInstance()->getUserPage($user->getId());
			else
				$data->userPage=null;
			return $data;
		}
	}
?>